
import WTool from "../WTool";
import { ZTool } from "../ZTool";

const { ccclass, property } = cc._decorator;

@ccclass
export default class Could extends cc.Component {

    // onLoad () {}

    start() {
        let time = ZTool.GetRandom(150, 300);
        WTool.Tween_Angle(this.node, time * (360 + this.node.angle) / 360, -360, () => {
            this.node.angle = 0;
            WTool.Tween_AngleForever(this.node, time, -360, () => {
                this.node.angle = 0;
            })
        })
    }

    // update (dt) {}
}
